package com.sew.sewweb.service.impl;

import com.sew.sewweb.bean.CtpAttachmentEntity;
import com.sew.sewweb.common.utils.PageUtils;
import com.sew.sewweb.common.utils.Query;
import com.sew.sewweb.mapper.CtpAttachmentMapper;
import com.sew.sewweb.service.CtpAttachmentService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("ctpAttachmentService")
public class CtpAttachmentServiceImpl extends ServiceImpl<CtpAttachmentMapper, CtpAttachmentEntity> implements CtpAttachmentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CtpAttachmentEntity> page = this.page(
                new Query<CtpAttachmentEntity>().getPage(params),
                new QueryWrapper<CtpAttachmentEntity>()
        );

        return new PageUtils(page);
    }

}